import React from 'react'

export default function Book(props) {
  let {data,index}=props
  return (
    <div className='book'>
      <div className='NO'>{index}</div>
        <div className='card'>
            <img src={data.image} alt="" />
            <div className='info'>
            <p>{data.name}</p>
            <p>{ data.author}</p>
            <p style={{marginTop:'10px'}}>{ data.press}</p>
            </div>
        </div>
    </div>
  )
}
